<?php
declare(strict_types=1);
/**
 * Created by project.
 * User: huanzipap
 * Date: 2023/5/11
 * Time: 15:01
 */

namespace App\Model;

use Hyperf\Database\Model\Model;
use Hyperf\Database\Model\SoftDeletes;

class StudyColumnCategory extends Model
{
    use SoftDeletes;

    protected ?string $table='study_column_category';
    public bool $timestamps = true;

    protected array $fillable = ['party_id','column_id','name','status','admin_id'];



    public function study(): \Hyperf\Database\Model\Relations\hasMany
    {
        return $this->hasMany(Study::class, 'column_cate_id', 'id');
    }

}